package com.springboot.springautowired.beanlifecircle;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * initMethod注解参数方式实现初始化---这是xml的注解版
 * @author mac
 * @date 2021/9/15 5:56 下午
 */
@Configuration
public class InitOfInitMethod {
    @Bean(initMethod = "initMethod")
    public LittleClass getLittleClassBean(){
        return new LittleClass();
    }


}

class LittleClass{
    public void initMethod(){

    }
}
